package com.ruoyi.audit.service.impl;

import java.util.List;

import com.ruoyi.domain.PartnersInvite;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.audit.mapper.PartnersInviteMapper;
import com.ruoyi.audit.service.IPartnersInviteService;

/**
 * 合伙人邀请Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-25
 */
@Service
public class PartnersInviteServiceImpl implements IPartnersInviteService 
{
    @Autowired
    private PartnersInviteMapper partnersInviteMapper;

    /**
     * 查询合伙人邀请
     * 
     * @param inviteid 合伙人邀请ID
     * @return 合伙人邀请
     */
    @Override
    public PartnersInvite selectPartnersInviteById(Long inviteid)
    {
        return partnersInviteMapper.selectPartnersInviteById(inviteid);
    }

    /**
     * 查询合伙人邀请列表
     * 
     * @param partnersInvite 合伙人邀请
     * @return 合伙人邀请
     */
    @Override
    public List<PartnersInvite> selectPartnersInviteList(PartnersInvite partnersInvite)
    {
        return partnersInviteMapper.selectPartnersInviteList(partnersInvite);
    }

    /**
     * 新增合伙人邀请
     * 
     * @param partnersInvite 合伙人邀请
     * @return 结果
     */
    @Override
    public int insertPartnersInvite(PartnersInvite partnersInvite)
    {
        return partnersInviteMapper.insertPartnersInvite(partnersInvite);
    }

    /**
     * 修改合伙人邀请
     * 
     * @param partnersInvite 合伙人邀请
     * @return 结果
     */
    @Override
    public int updatePartnersInvite(PartnersInvite partnersInvite)
    {
        return partnersInviteMapper.updatePartnersInvite(partnersInvite);
    }

    /**
     * 批量删除合伙人邀请
     * 
     * @param inviteids 需要删除的合伙人邀请ID
     * @return 结果
     */
    @Override
    public int deletePartnersInviteByIds(Long[] inviteids)
    {
        return partnersInviteMapper.deletePartnersInviteByIds(inviteids);
    }

    /**
     * 删除合伙人邀请信息
     * 
     * @param inviteid 合伙人邀请ID
     * @return 结果
     */
    @Override
    public int deletePartnersInviteById(Long inviteid)
    {
        return partnersInviteMapper.deletePartnersInviteById(inviteid);
    }
}
